package whf.framework.workflow.entity;

import whf.framework.entity.TreeNode;

public class WorkflowDefinition extends whf.framework.entity.AbstractEntity implements TreeNode<WorkflowDefinition>{

	private static final long serialVersionUID = 0;

	// 上级
	private WorkflowDefinition parent;
	
	private WorkflowDefinition currentVersion;

	// 文件路径
	private String path;

	// 版本
	private int version;

	private long processDefinition;
	// ---------- methods ----------

	public void setParent(WorkflowDefinition parent) {
		this.parent = parent;
	}

	public WorkflowDefinition getParent() {
		return this.parent;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public String getPath() {
		return this.path;
	}

	public void setVersion(int version) {
		this.version = version;
	}

	public int getVersion() {
		return this.version;
	}

	public long getProcessDefinition() {
		return processDefinition;
	}

	public void setProcessDefinition(long processDefinition) {
		this.processDefinition = processDefinition;
	}

	public WorkflowDefinition getCurrentVersion() {
		return currentVersion;
	}

	public void setCurrentVersion(WorkflowDefinition currentVersion) {
		this.currentVersion = currentVersion;
	}

}